/*
 * NoneTouchRecyclerView.java
 * business
 *
 * Created by ChenTao on 2017/5/16.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * 不需要Touch事件的RecyclerView
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/5/16 0016 14:44
 */
public class NoneTouchRecyclerView extends RecyclerView {
    public NoneTouchRecyclerView(Context context) {
        super(context);
    }

    public NoneTouchRecyclerView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public NoneTouchRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean onTouchEvent(MotionEvent e) {
        return false;
    }
}
